package day08.bai01;

import java.util.Scanner;

public class lianxi03 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String str=sc.next();
        char[] chars=str.toCharArray();
        //把字符串转换为char[] 遍历数组
        for (int i = 0; i < chars.length; i++) {
            System.out.println(chars[i]);
        }
     }
}
